﻿@model EventPlanner.Models.Contacto

@{
    ViewBag.Title = "Edit";    
}

<h2 style="font-family: 'Segoe Print'">Editar @Model.Nombre @Model.Apellido</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Contacto</legend>

        @Html.HiddenFor(model => model.id)        

        <div class="editor-label">
            @Html.LabelFor(model => model.Nombre)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nombre)
            @Html.ValidationMessageFor(model => model.Nombre)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Apellido)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Apellido)
            @Html.ValidationMessageFor(model => model.Apellido)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Email2)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email2)
            @Html.ValidationMessageFor(model => model.Email2)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.facebook)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.facebook)
            @Html.ValidationMessageFor(model => model.facebook)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Mobil)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Mobil)
            @Html.ValidationMessageFor(model => model.Mobil)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Fijo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Fijo)
            @Html.ValidationMessageFor(model => model.Fijo)
        </div>

        <p>
            <input type="submit" value="Salvar" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Volver a Mis Contactos", "Index")
</div>
